package com.tancire.member.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 会员钱包对象 member_purse
 *
 * @author tancire
 * @date 2024-10-18
 */
public class MemberPurse extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属会员 */
    @Excel(name = "所属会员")
    private Long memberId;

    /** 会员账号 */
    @Excel(name = "会员账号")
    private String memberAccount;

    /** 会员金币 */
    @Excel(name = "会员金币")
    private BigDecimal coinNum;

    /** 会员现金 */
    @Excel(name = "会员现金")
    private BigDecimal cashNum;

    /** 钱包状态(字典) */
    @Excel(name = "钱包状态(字典)")
    private String purseStatus;

    /**
     * 复活卡
     */
    private Integer liveCard;

    /** 0 正常  1 删除  真删除，字段保留 */
    private Long delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }
    public void setMemberAccount(String memberAccount) {
        this.memberAccount = memberAccount;
    }

    public String getMemberAccount() {
        return memberAccount;
    }
    public void setCoinNum(BigDecimal coinNum) {
        this.coinNum = coinNum;
    }

    public BigDecimal getCoinNum() {
        return coinNum;
    }
    public void setCashNum(BigDecimal cashNum) {
        this.cashNum = cashNum;
    }

    public BigDecimal getCashNum() {
        return cashNum;
    }
    public void setPurseStatus(String purseStatus) {
        this.purseStatus = purseStatus;
    }

    public String getPurseStatus() {
        return purseStatus;
    }
    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public Integer getLiveCard() {
        return liveCard;
    }

    public void setLiveCard(Integer liveCard) {
        this.liveCard = liveCard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("memberAccount", getMemberAccount())
            .append("coinNum", getCoinNum())
            .append("cashNum", getCashNum())
            .append("purseStatus", getPurseStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
